package com.supermap.dataservice.cloud.agrinfo.puberty;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author aqua
 * @description 生育期相关接口
 * @date 2018年11月08 下午 4:42
 * @email 1301584033@qq.com
 */
@Mapper
public interface PubertyMapper {

    /**
     * 根据品种ID获取品种生育期列表;
     * */
    @Select("select  id as pubertyId, puberty as pubertyName from t_puberty where crop = #{codeId}")
    List<Map<String,Object>> getListPubertyByCropId(@Param("codeId")String codeId);
}
